<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%orders_log}}".
 *
 * @property integer $id
 * @property integer $orders_id
 * @property integer $operator_id
 * @property string $operator_name
 * @property integer $status
 * @property string $result
 * @property string $log_text
 * @property integer $alttime
 */
class OrdersLog extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%orders_log}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['orders_id', 'operator_id', 'status', 'alttime'], 'integer'],
            [['operator_name', 'result'], 'string', 'max' => 100],
            [['log_text'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('zhtfrontend', '自增编码'),
            'orders_id' => Yii::t('zhtfrontend', '订单id'),
            'operator_id' => Yii::t('zhtfrontend', '操作员id'),
            'operator_name' => Yii::t('zhtfrontend', '操作员姓名'),
            'status' => Yii::t('zhtfrontend', '订单状态(0 已下单 1 已确认 2 被退货 3 退货 4 被换货 5 换货  6预约 7交定金 8被扩科 9扩科 10转课 11被退定金 12退定金   13被转化 14转化   15被续费 16续费 )'),
            'result' => Yii::t('zhtfrontend', '操作结果 （SUCCESS:成功;FAILURE:失败）'),
            'log_text' => Yii::t('zhtfrontend', '操作内容'),
            'alttime' => Yii::t('zhtfrontend', '操作时间'),
        ];
    }
}
